package com.ruoyi.factorydata.service;

import java.util.List;

import com.ruoyi.factorydata.domain.MaterialCategory;
import com.ruoyi.factorydata.domain.ProcessCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.factorydata.domain.vo.MaterialCategoryTreeVo;
import com.ruoyi.factorydata.domain.vo.ProcessCategoryTreeVo;

/**
 * 工序分类Service接口
 *
 * @author ruoyi
 * @date 2025-07-09
 */
public interface IProcessCategoryService extends IService<ProcessCategory> {
    /**
     * 查询工序分类
     *
     * @param id 工序分类主键
     * @return 工序分类
     */
    public ProcessCategory selectProcessCategoryById(Long id);

    /**
     * 查询工序分类列表
     *
     * @param processCategory 工序分类
     * @return 工序分类集合
     */
    public List<ProcessCategory> selectProcessCategoryList(ProcessCategory processCategory);

    /**
     * 新增工序分类
     *
     * @param processCategory 工序分类
     * @return 结果
     */
    public int insertProcessCategory(ProcessCategory processCategory);

    /**
     * 修改工序分类
     *
     * @param processCategory 工序分类
     * @return 结果
     */
    public int updateProcessCategory(ProcessCategory processCategory);

    /**
     * 批量删除工序分类
     *
     * @param ids 需要删除的工序分类主键集合
     * @return 结果
     */
    public int deleteProcessCategoryByIds(Long[] ids);

    /**
     * 删除工序分类信息
     *
     * @param id 工序分类主键
     * @return 结果
     */
    public int deleteProcessCategoryById(Long id);

    List<ProcessCategoryTreeVo> getProcessCategoryTree(ProcessCategory processCategory);
}